<?php declare(strict_types=1);


namespace App\Model\Entity;

use phpseclib\Math\BigInteger;
use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 用户详情表
 * Class MemberDetail
 *
 * @since 2.0
 *
 * @Entity(table="member_detail", pool="db.pool")
 */
class MemberDetail extends Model
{
    /**
     *
     * @Id(incrementing=true)
     *
     * @Column(name="id")
     *
     * @var int|null
     */
    private $id;

    /**
     * 主表主键ID
     *
     * @Column(name="member_id", prop="memberId")
     *
     * @var string|null
     */
    private $memberId;

    /**
     * 添加时间
     *
     * @Column(name="add_time", prop="addTime")
     *
     * @var int|null
     */
    private $addTime;

    /**
     * 更新时间
     *
     * @Column(name="last_update_time", prop="lastUpdateTime")
     *
     * @var int|null
     */
    private $lastUpdateTime;


    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param string|null $memberId
     */
    public function setMemberId(?string $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @return string|null
     */
    public function getMemberId(): ?string
    {
        return $this->memberId;
    }

    /**
     * @param int|null $addTime
     */
    public function setAddTime(?int $addTime): void
    {
        $this->addTime = $addTime;
    }

    /**
     * @return int|null
     */
    public function getAddTime(): ?int
    {
        return $this->addTime;
    }

    /**
     * @param int|null $lastUpdateTime
     */
    public function setLastUpdateTime(?int $lastUpdateTime): void
    {
        $this->lastUpdateTime = $lastUpdateTime;
    }

    /**
     * @return int|null
     */
    public function getLastUpdateTime(): ?int
    {
        return $this->lastUpdateTime;
    }

}
